package com.sample.common.service;

import org.apache.dubbo.common.stream.StreamObserver;

public interface UserService {

    String getUserInfo();

    // SERVER_STAREAM：服务端流
    default void say(String user, StreamObserver<String> response){
    }

    // CLIENT_STAREAM
    default StreamObserver<String> sayClient(StreamObserver<String> response){
        return response;
    }
}
